/**
 * 全局mixins
 * */
export default {
  name: 'commonMixins',
  props: {},
  data() {
    return {};
  },
  watch: {},
  computed: {},
  mounted() {
  },
  methods: {
    /**
     * 跳转页面
     * $page 路径名称
     * $obj 参数
     * */
    commonPushPage($page, $obj = {}) {
      if (!$page) return;
      let par = {name: $page, query: {}};
      if ($obj) {
        for (let ol in $obj) {
          par['query'][ol] = $obj[ol];
        }
      }
      this.$router.push(par)
    },
  },
};
